package com.yixing.tech.wms.feigh;

import com.yixing.tech.common.base.BaseResponse;
import com.yixing.tech.common.base.BusinessException;
import com.yixing.tech.common.config.FeignConfig;
import com.yixing.tech.common.entity.wcs.TaskVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "p2wcs", configuration = FeignConfig.class)
public interface P2Service extends WcsService{

    @PostMapping("/wcs/tbea/ic/wcs/task/genTask")
    BaseResponse<Object> genTask(@RequestBody TaskVO taskVO) throws BusinessException;

    @PostMapping("/wcs/tbea/ic/wcs/task/cancelTask")
    BaseResponse<Object> cancelTask(@RequestBody TaskVO taskVO) throws BusinessException;

    @PostMapping("/wcs/tbea/ic/wcs/box/interaction/updateBoxState")
    BaseResponse<Object> updateBoxState(@RequestBody Map<String, Object> params) throws BusinessException;
}
